#include "server.hpp"
#include <memory>

int main(int args,char* argv[])
{   
    if(args != 2)
    {
        std::cout << "please input port！" << std::endl;
        exit(1);
    }
    uint16_t port = atoi(argv[1]);
    //智能指针控制内存
    std::unique_ptr<TcpServer> call(new TcpServer(port));
    call->initServer();
    call->Start();
    return 0;
}